package com.site.service;

import com.site.dao.NewTypeDao;
import com.site.entity.NewTypeEntity;

import java.sql.SQLException;
import java.util.List;

public class NewTypeService {
    NewTypeDao dao;
    public NewTypeService() throws SQLException,ClassNotFoundException{
        dao=new NewTypeDao();
    }

    public List<NewTypeEntity> getAll() throws SQLException {
        return dao.getAll();
    }
}
